<body>
<script src=../../../resources/js-test.js></script>
<input type=color id=input value=#ffffff>
<script>
description('Test if a change event dispatched by closing a chooser doesn\'t cause a crash.');
input.onchange = function() {
    this.type = 'email';
};

internals.selectColorInColorChooser(input, '#fffffe');
internals.endColorChooser(input);
testPassed('if not crashed.');
</script>
</body>
